#pragma once

#include "stdafx.h"
#include "Common.h"

extern char sMsg[2000];

#define LOG_MSG(LOG_ID, MSG, ...) { \
	sprintf_s(sMsg, 2000, MSG, __VA_ARGS__); \
	LogMessage(LOG_ID, sMsg); \
}


int LogInit(char* szFilename);
void _cdecl LogMessage(int logId, const char* message);
void _cdecl LogMessage(int logId, const wchar_t* message);
void LogBB(int logId, BitBoard bb);
void LogBB_FP(FILE* fp, BitBoard bb);
void LogBB64(int logId, BitBoard64 bb);
void LogClose(int iLogId);
